using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Xml;
using Microsoft.Win32;
using Universe.Farm.Builtin.MsSqlListener;

namespace Universe.Farm.Builtin
{
    public class MsSqlHealth : IServiceHealthListener
    {
        public Type DescryptionType
        {
            get { return typeof (MsSqlDescription); }
        }

        public object Ping
        {
            get
            {
                return SqlServiceInfo.Get();
            }
        }

        public string DefaultID
        {
            get { return "LocalSqlServer"; }
        }

        public TimeSpan DefaultPingInterval
        {
            get { return TimeSpan.FromSeconds(20); }
        }

        public void Init(XmlElement xmlListener)
        {
        }

        
    }
}
